<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="unsubmit">详情</view>
			<view :class="['inv-h',Inv==1?'inv-h-se':'']" @click="submit">处理</view>
		</view>



		<view class="" style="margin-top: 100upx;position: absolute;width: 100%;">
			<view class="formPage" v-if="Inv==0">
				<form>
					<view class="formPage-titel">
						<view>
							基本信息
						</view>
						<!-- <image v-if="basic==1" @click="downUp(1)" style="width:7%;height: 60%;"
							src="@/static/chevron-down.png" alt />
						<image v-if="basic==2" @click="downUp(2)" style="width:7%;height: 60%;"
							src="@/static/chevron-up.png" alt /> -->
					</view>

					<fromItem v-if="basic==1" title="下发指令单位" flex="right" nameColor="#989898" projectName="#343434"
						:data="totalData.fIssueunit"></fromItem>

					<fromItem v-if="basic==1" title="单位类型" :data="totalData.fUnittype" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>

					<fromItem v-if="basic==1" title="开始检查日期" :data="totalData.fStartcheckdates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>

					<fromItem v-if="basic==1" title="截止检查日期" flex="right" nameColor="#989898" projectName="#343434"
						:data="totalData.fEndcheckdates">
					</fromItem>
					<fromItem v-if="basic==1" title="受检单位" :data="totalData.fCheckunit" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="受检项目" :data="totalData.fCheckproject" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>

					<fromItem v-if="basic==1" title="工作指令编号" :data="totalData.fOrdernumber" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="存在问题概述" :data="totalData.fProblemdescription" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="整改措施及要求" :data="totalData.fChangerequirements" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="要求整改期限" :data="totalData.fRequesttermdates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="检查部门" :data="totalData.fCheckdepartment" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="检查人员" :data="totalData.fCheckinspectors" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="指定签收人" :data="totalData.fSubsignname1" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="抄送人" :data="totalData.fCcpeople" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="填报人" :data="totalData.fReportname" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="填报日期" :data="totalData.fReportdates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="资料附件" flex="left" nameColor="#989898" projectName="#343434">
					</fromItem>
					<view class="fileList" v-if="basic==1">
						<div class="box" v-if="fileList.length !== 0">
							<div class="file" style v-for="(item, index) in fileList" :key="index"
								@click="pdfPage(item.name, item.url)">
								<image src="@/static/organization.png">
								</image>
								<span class="text" style>{{ item.name }}</span>
							</div>
						</div>
					</view>

					<view class="cu-form-group" style="margin-bottom: 50upx;">
					</view>

					<div class="wrapper" v-if="appliance==1">

						<div class="list">
							<text class="text" @click="clickNum('0')">签收</text>

						</div>
					</div>
				</form>



			</view>

			<view class="formPage" v-if="Inv==1">
				<form>
				
					<view style="width: 100%;">
						<view class="formPage-titel">
							<view>
								受检单位签收
							</view>
						<!-- 	<image v-if="close==1" @click="downUpClose(1)" style="width:7%;height: 60%;"
								src="@/static/chevron-down.png" alt />
							<image v-if="close==2" @click="downUpClose(2)" style="width:7%;height: 60%;"
								src="@/static/chevron-up.png" alt /> -->
						</view>

					
						<cLabel v-if="close==1" title='签收单位' v-model='totalData.fSignunit1' :must="must"
							:disabled="true" :dataText='totalData.fSignunit1' rightIcon='' mode='text' />
						<cLabel v-if="close==1" title='签收说明' v-model='totalData.fSigndescription1' must="no"
							:disabled="disabled" :dataText='totalData.fSigndescription1' rightIcon='' mode='textarea' />


						<cLabel v-if="close==1" title='签收人' v-model='totalData.fSignname1' :must="must" :disabled="true"
							:dataText='totalData.fSignname1' rightIcon='' mode='text' />

						<cLabel v-if="close==1" title='签收日期' over="calc(5em + 15px)" :dataText='totalData.fSigndate1s'
							:must="must"  :disabled="disabled" v-model='totalData.fSigndate1s' mode='date1'
							:flagNum="flagNum" />
					</view>

					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1">
						<div class="list">
							<text class="text" @click="clickNum('0')">签收</text>
						</div>
					</div>
				</form>
			</view>

			<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor" :width="width"
				:height="height" ref="loading" :custom="false" :type="1" @callback="callback()">
			</loading>
		</view>


	</view>
</template>

<script src="./index.js">
</script>

<style scoped lang="less">
	@import './index.less';
</style>
